import { createSlice } from "@reduxjs/toolkit"

const detailStore = createSlice({
    name: "detail",
    initialState: {
        detailInfo: {}
    },
    reducers: {
        changeDetailInfo(state, action) {
            state.detailInfo = action.payload
        }
    }
})
// 按需导出
export const {
    changeDetailInfo
} = detailStore.actions
// 导出整个reducer
export default detailStore.reducer